package com.pj.point;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;

import com.pj.point.util.alert.AlertUtil;

public class Inform extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_inform);
        Intent intent = getIntent();
        String title = intent.getStringExtra("title");
        String content = intent.getStringExtra("content");
        String pointId = intent.getStringExtra("pointId");
        AlertUtil.show(Inform.this,title,content,b -> {
            if (b){
                startActivity(new Intent(Inform.this,MainActivity.class));
                finish();
            }
        });
    }
}